﻿using DevExpress.XtraGrid.Demos.util;
using Luna小店.DTO;
using Luna小店.UC.面料库存.库存记录.service;
using mendian;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Luna小店.UC.面料库存.入库.service
{
    public class 入库Service
    {
        public static void post其他入库(PurchaseOrderDTO PurchaseOrderDTO)
        {
            RestCall.PostHttp(
                URL.接口url + "/inventory/purchaseInStock", 
                FunctionHelper.JsonSerialization(
                    PurchaseOrderDTO
                    )
                );
        }

        public static void post新增面料(DTO面料库存 DTO面料库存)
        {
            RestCall.PostHttp(
                URL.接口url + "/material/saveMaterial", 
                FunctionHelper.JsonSerialization(
                    DTO面料库存
                    )
                );
        }
    }
}
